#{table class:"xf_con_mem_r_b_table", cellspacing:"0", cellpadding:"0", border:"0", width:"100%", tr_class_odd:"xn_tr_bj"}
  #{tr}
  	#{th colspan:"8"}还款情况#{/th}
  #{/tr}
  #{tr}
    #{th}序号#{/th}
    #{th}账单标题#{/th}
    #{th}本期需还款金额#{/th}
    #{th}是否逾期#{/th}
    #{th}还款状态#{/th}
    #{th}到期还款时间#{/th}
    #{th}实际还款时间#{/th}
    #{th}操作#{/th}
  #{/tr}
  #{list items:pageBean?.page,as:'loanBill'}
  #{tr}
  	#{td}${loanBill_index}#{/td}
	#{td}${loanBill?.title}#{/td}
	#{td}${loanBill?.repayment_amount}#{/td}
	#{td}
	  #{if loanBill?.is_overdue == 0}
		未逾期
	  #{/if}
	  #{else}
		逾期
	  #{/else}
	#{/td}
	#{td}
	  #{if loanBill?.status == -1 || loanBill?.status == -2 }
		未还款
	  #{/if}
	  #{else}
		还款
	  #{/else}
	#{/td}
	#{td}${loanBill?.repayment_time?.format('yyyy-MM-dd')}#{/td}
	#{td}${loanBill?.real_repayment_time?.format('yyyy-MM-dd')}#{/td}
	#{td}
	  <a style="cursor: pointer;" href="javascript:showBill('${loanBill?.sign}', 0, 1)" class="xf_ta_onclick">
	        详情
	  </a>
	#{/td}
  #{/tr}
  #{/list}
#{/table}             
<div class="xf_ht_page">
  <div class="page_warp">
    #{page funMethod:"repaymentSituation",currPage:pageBean.currPage,pageSize:pageBean.pageSize,totalCount:pageBean.totalCount,theme:2,style:4 /}
  </div>
</div>

<script type="text/javascript">
  function showBill(billId, type, currPage) {
    $.layer({
      type : 2,
      title: '对账单',
      shadeClose: true,
      maxmin: true,
      fix : true,  
      area: ['900', 500],                     
      iframe: {
        src : "@{supervisor.financeManager.ReceivableBillManager.billDetail}?billId="+billId+"&type="+type+"&currPage="+currPage
      }
    }); 
  }
</script>